#include <iostream>
using namespace std;
class Point{
friend int calcH(const Point&, const Point&);
friend int calcV(const Point&, const Point&);
private:
	int x,y;
public:
	Point(int i = 0, int j = 0){
//这里编写构造函数代码
		this->x=i;
		this->y=j;
	}
};
int main()
{
	int a,b,c,d;
	cin>>a>>b>>c>>d;
	Point p1(a,b);
	Point p2(c,d);
	cout<<calcH(p1,p2);
	cout<<' ';
	cout<<calcV(p1,p2);
	return 0;
}
int calcH(const Point &p1,const Point &p2)
{
	if(p1.x>p2.x){
		return p1.x-p2.x;
	}else return p2.x-p1.x;
}
int calcV(const Point &p1,const Point &p2)
{
	if(p1.y>p2.y){
		return p1.y-p2.y;
	}else return p2.y-p1.y;
}
